fetch('movies.json')
.then(response => response.json())
.then(data => console.log(data));

fetch('test.txt')
.then(response => response.text())
.then(data => console.log(data));

axios.get('movies.json')
.then(response => console.log(response.data));